﻿using System.Windows;

namespace FESSC_WORKBENCH_SERVER
{
    public static class AppVar
    {
        public static ECLogger.Logger log
        {
            get { return (Application.Current as App).log; }
            set { (Application.Current as App).log = value; }
        }
        public static DB db
        {
            get { return (Application.Current as App).db; }
            set { (Application.Current as App).db = value; }
        }
        public static MQWorker mqworker
        {
            get { return (Application.Current as App).mqworker; }
            set { (Application.Current as App).mqworker = value; }
        }
        public static ECMessageQueue.MQServer mqserver
        {
            get { return (Application.Current as App).mqserver; }
            set { (Application.Current as App).mqserver = value; }
        }
        public static FESSC_MESSAGE.UserToken usertoken
        {
            get { return (Application.Current as App).usertoken; }
            set { (Application.Current as App).usertoken = value; }
        }
    }
}
